package com.example.mapper;

import com.example.entity.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description: UserMapper 接口
 * @Author: luzhiming
 * @CreateDate: 2019/11/18 10:44
 * @Version: 1.0
 */
public interface UserMapper {
    @Select("select userId ,userName from user")
    List<User> getUserList();

    @Select("select userId ,userName from user where userId=#{userId}")
    User getUserByUserId(String userId);
}